package com.woniuxy.admindao.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 管理员
 * </p>
 *
 * @author 冉杰
 * @since 2024-01-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("admin")
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 账户名id
     */
    @TableId(value = "admin_id", type = IdType.AUTO)
    private Integer adminId;

    /**
     * 账户名
     */
    @TableField("admin_name")
    private String adminName;

    /**
     * 密码
     */
    @TableField("admin_pass")
    private String adminPass;

    @TableField("admin_phone")
    private String adminPhone;

    /**
     * 状态 0禁用 1启用
     */
    @TableField("admin_state")
    private Integer adminState;

    /**
     * 角色 0 普通管理员 1 超级管理员
     */
    @TableField("role")
    private Integer role;

    /**
     * 添加人账号
     */
    @TableField("add_admin_account")
    private String addAdminAccount;

    /**
     * 添加时间
     */
    @TableField("add_time")
    private String addTime;


}
